<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<title></title>
<link href="<%=request.getContextPath()%>/css/tab.css" rel="stylesheet"
	type="text/css"></link>
<link href="<%=request.getContextPath()%>/css/style.css"
	rel="stylesheet" type="text/css"></link>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jquery-1.5.1.min.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		if ($("#requesttypevalue").val() != "") {
			$("#requesttype").val($("#requesttypevalue").val());
		}
		if ($("#cardtypevalue").val() != "") {
			$("#cardtype").val($("#cardtypevalue").val());
		}
		if ($("#businessenterprisetype1value").val() != "") {
			$("#businessenterprisetype1").val($("#businessenterprisetype1value").val());
		}
		if ($("#businessenterprisetype2value").val() != "") {
			$("#businessenterprisetype2").val($("#businessenterprisetype2value").val());
		}
		if ($("#businessenterprisetype3value").val() != "") {
			$("#businessenterprisetype3").val($("#businessenterprisetype3value").val());
		}
		if ($("#certTypevalue").val() != "") {
			$("#certType").val($("#certTypevalue").val());
		}
	});
	
	function checkInfo() {
		clearErrorInfo();
		if ($("#accountholdername").val() == "") {
			$("#accountholdernameerror").html("必填！");
			$("#accountholdername").focus();
			return false;
		}
		if ($("#cardnum1").val() == "") {
			$("#cardnum1error").html("必填！");
			$("#cardnum1").focus();
			return false;
		}
		if($("#certType").val() == 2 && $("#usbkeyid").val()==""){
			$("#usbkeyiderror").html("硬证书必填！");
			return false;
		}
		return true;
	}

	function clearErrorInfo() {
		$("#accountholdernameerror").html("");
		$("#cardnum1error").html("");
		$("#usbkeyiderror").html("");
	}
</script>
</head>
<body>
	<br />
	<br />
	<!--第一种形式-->

	<!--第二种形式-->
	<div id="tabs1" style="width: 680px">
		<div class="menu1box">
			<ul id="menu1">
				<li class="hover"><a href="#">企业用户</a></li>
			</ul>
		</div>
		<div class="main1box">
			<div class="main" id="main1">
				<font color="#7D9EC0"><I><b>企业用户证书信息修改</b> </I> </font>
				<ul class="block">

					<table width="100%" border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td height="299">
								<form action="entUserCertAdd.html" method="post">
									<table width="90%" border=0 align="center" cellpadding="3"
										cellspacing="1" bgcolor="#cccccc">
										<tr>
											<td width="20%" class=list01>企业名称：</td>
											<td width="30%" class=list02><input type="hidden"
												name="ID" value="${entUserCert.ID}" /> <input id="entname"
												name="entname" value="${entUserCert.entname}"
												maxlength="128" /> <font id="entnameerror" color="red"> </font></td>
											<td width="20%" class=list01>企业证书持有人姓名：</td>
											<td width="30%" class=list02><input id="username"
												name="username" value="${entUserCert.username}"
												maxlength="64" /> <font id="usernameerror" color="red"> </font></td>
										</tr>
										<tr>
											<td width="20%" class=list01>持有人证件类型：</td>
											<td width="30%" class=list02><input type="hidden"
												id="cardtypevalue" value="${entUserCert.cardtype}" /><select
												id="cardtype" name="cardtype">
													<c:forEach items="${cardTypeList}" var="cardType">
														<option value="${cardType.id}">${cardType.value}</option>
													</c:forEach>
											</select> <font color="red"> </font></td>
											<td width="20%" class=list01>持有人证件号码：</td>
											<td width="30%" class=list02><input id="cardnum"
												name="cardnum" value="${entUserCert.cardnum}" maxlength="80" />
												<font id="cardnumerror" color="red"> </font></td>
										</tr>
										<tr>
											<td width="20%" class=list01>证书申请方式：</td>
											<td width="30%" class=list02><input type="hidden"
												id="requesttypevalue" value="${entUserCert.requesttype}" /><select
												id="requesttype" name="requesttype">
													<option value="01">临柜申请</option>
													<option value="02">见证申请</option>
													<option value="03">视频申请</option>
													<option value="99">其它</option>
											</select> <font color="red"></font></td>
											<td width="20%" class=list02></td>
											<td width="30%" class=list02>
										</tr>
										<tr>
											<td width="20%" class=list01>企业机构证件1类型：</td>
											<td width="30%" class=list02><input type="hidden"
												id="businessenterprisetype1value"
												value="${entUserCert.businessenterprisetype1}" /><select
												id="businessenterprisetype1" name="businessenterprisetype1">
													<c:forEach items="${organTypeList}" var="organType">
														<option value="${organType.id}">${organType.value}</option>
													</c:forEach>
											</select> <font color="red"> </font></td>
											<td width="20%" class=list01>企业机构证件1号码：</td>
											<td width="30%" class=list02><input
												id="businessenterprisenum1" name="businessenterprisenum1"
												value="${entUserCert.businessenterprisenum1}"
												maxlength="128" /> <font id="businessenterprisenum1error" color="red"> </font></td>
										</tr>
										<tr>
											<td width="20%" class=list01>证件1发证机关：</td>
											<td width="30%" class=list02><input
												id="businessissuingauthority1"
												name="businessissuingauthority1"
												value="${entUserCert.businessissuingauthority1}"
												maxlength="128" /> <font color="red"></font></td>
											<td width="20%" class=list01>证件1失效时间：</td>
											<td width="30%" class=list02><input id="expirationtime1"
												name="expirationtime1"
												value="${entUserCert.expirationtime1}" maxlength="14" /> <font
												color="red"> </font></td>
										</tr>
										<tr>
											<td width="20%" class=list01>企业机构证件2类型：</td>
											<td width="30%" class=list02><input type="hidden"
												id="businessenterprisetype2value"
												value="${entUserCert.businessenterprisetype2}" /><select
												id="businessenterprisetype2" name="businessenterprisetype2">
													<option value="0"></option>
													<c:forEach items="${organTypeList}" var="organType">
														<option value="${organType.id}">${organType.value}</option>
													</c:forEach>
											</select> <font color="red"> </font></td>
											<td width="20%" class=list01>企业机构证件2号码：</td>
											<td width="30%" class=list02><input
												id="businessenterprisenum2" name="businessenterprisenum2"
												value="${entUserCert.businessenterprisenum2}"
												maxlength="128" /> <font color="red"> </font></td>
										</tr>
										<tr>
											<td width="20%" class=list01>证件2发证机关：</td>
											<td width="30%" class=list02><input
												id="businessissuingauthority2"
												name="businessissuingauthority2"
												value="${entUserCert.businessissuingauthority2}"
												maxlength="128" /> <font color="red"></font></td>
											<td width="20%" class=list01>证件2失效时间：</td>
											<td width="30%" class=list02><input id="expirationtime2"
												name="expirationtime2"
												value="${entUserCert.expirationtime2}" maxlength="128" /> <font
												color="red"> </font></td>
										</tr>
										<tr>
											<td width="20%" class=list01>企业机构证件3类型：</td>
											<td width="30%" class=list02><input type="hidden"
												id="businessenterprisetype3value"
												value="${entUserCert.businessenterprisetype3}" /><select
												id="businessenterprisetype3" name="businessenterprisetype3">
													<option value="0"></option>
													<c:forEach items="${organTypeList}" var="organType">
														<option value="${organType.id}">${organType.value}</option>
													</c:forEach>
											</select> <font color="red"> </font></td>
											<td width="20%" class=list01>企业机构证件3号码：</td>
											<td width="30%" class=list02><input
												id="businessenterprisenum3" name="businessenterprisenum3"
												value="${entUserCert.businessenterprisenum3}"
												maxlength="128" /> <font color="red"> </font></td>
										</tr>
										<tr>
											<td width="20%" class=list01>证件3发证机关：</td>
											<td width="30%" class=list02><input
												id="businessissuingauthority3"
												name="businessissuingauthority3"
												value="${entUserCert.businessissuingauthority3}"
												maxlength="128" /> <font color="red"></font></td>
											<td width="20%" class=list01>证件3失效时间：</td>
											<td width="30%" class=list02><input id="expirationtime3"
												name="expirationtime3"
												value="${entUserCert.expirationtime3}" maxlength="128" /> <font
												color="red"> </font></td>
										</tr>
										<tr>
											<td width="20%" class=list01>手机：</td>
											<td width="30%" class=list02><input id="mobilephone"
												name="mobilephone" value="${entUserCert.mobilephone}"
												maxlength="30" /> <font color="red"> </font></td>
											<td width="20%" class=list01>邮件：</td>
											<td width="30%" class=list02><input id="mail"
												name="mail" value="${entUserCert.mail}" maxlength="100" />
												<font color="red"> </font></td>
										</tr>
										<tr>
											<td width="20%" class=list01>证书请求类型：</td>
											<td width="30%" class=list02><input type="hidden"
												id="certTypevalue" value="${entUserCert.certType}" /><select
												id="certType" name="certType">
													<option value="4">企业普通软证书</option>
													<option value="5">企业普通硬证书</option>
											</select> <font color="red"> </font></td>
											<td width="20%" class=list01>USBKEYID：</td>
											<td width="30%" class=list02><input id="usbkeyid"
												name="usbkeyid" value="${entUserCert.usbkeyid}"
												maxlength="30" /><input type="hidden" name="option"
												value="edit" /> <font id="usbkeyiderror" color="red"> </font></td>
										</tr>
										<tr>
											<td width="" class=list03 colspan="4"><input
												type="submit" value="保 存" />
												&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input
												type="button" value="取 消" /></td>
										</tr>
									</table>
								</form>
							</td>
						</tr>
					</table>

				</ul>
			</div>
		</div>
	</div>
	<br />
	<br />
	<!--第三种形式-->

</body>
</html>

